package com.itranswarp.learnjava.service;

//货品
public class Goods {
    private int id;
    private long userId;
    private String name;//商品名称
    private int count;//数量

    private double price;//价格

    public Goods(int id, long userId, String name, int count, double price) {
        this.id = id;
        this.userId = userId;
        this.name = name;
        this.count = count;
        this.price = price;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
}
